/**
 * 
 */
package tcss543.cpap.common;

/**
 * Yes, no maybe
 * 
 * @author ashish
 * 
 */
public enum ReviewerRank {
	YES(0), MAYBE(1), NO(2);

	/**
	 * numeric value
	 */
	@SuppressWarnings("unused")
	private final int value;

	/**
	 * Constructor
	 * 
	 * @param r
	 */
	ReviewerRank(int r) {
		value = r;
	}

	/**
	 * Returns the enum based on int value passed in
	 * @param v
	 * @return
	 */
	public static ReviewerRank get(int v) {
		switch (v) {
		case 0:
			return ReviewerRank.YES;
		case 1:
			return ReviewerRank.MAYBE;
		case 2:
			return ReviewerRank.NO;
		default:
			return null;

		}
	}
}
